package com.kaluli.system.utils;

import java.util.ArrayList;
import java.util.LinkedList;

/**
 * Lists工具类
 * 
 * @ClassName: com.dzy.util.collect.Lists
 * @author JoeHe
 * @date 2014年5月6日 下午5:48:10
 * @since 1.0
 * 
 */
public class Lists {

  private Lists() {}

  /**
   * Creates an empty {@code ArrayList} instance.
   * 
   * 
   * @return a new, empty {@code ArrayList}
   */
  public static <E> ArrayList<E> newArrayList() {
    return new ArrayList<E>();
  }

  /**
   * Creates an empty {@code ArrayList} instance.
   * 
   * 
   * @param initialCapacity
   * @return a new, empty {@code ArrayList}
   */
  public static <E> ArrayList<E> newArrayList(int initialCapacity) {
    return new ArrayList<E>(initialCapacity);
  }

  /**
   * Creates an empty {@code LinkedList} instance.
   * 
   * 
   * @return a new, empty {@code LinkedList}
   */
  public static <E> LinkedList<E> newLinkedList() {
    return new LinkedList<E>();
  }

}
